import styled from 'styled-components'

export const HomeWrapper = styled.div`
   width:960px;
   margin:0 auto;
   padding:30px 0;
   display:flex;
`

export const HomeLeft = styled.div`
   flex:1;
   .banner-img {
      width: 625px;
      height: 270px;
}
`

export const HomeRight = styled.div`
   flex: 0 0 280px;
   margin-left:20px;
`
export const RecommendWrapper = styled.div`
    
`
export const Item = styled.div`
    width:280px;
    height:50px;
    background:url(${(props) => props.imgUrl});
    background-size: 100% 100%;
    margin-bottom:5px;
    cursor: pointer;

`
export const Download = styled.div`
  width:280px;
  height:82px;
  display:flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  border:1px solid #eee;
  border-radius:3px;
  margin-top:10px;
  cursor: pointer;
  position: relative;
  .code_img{
     display:block;
     width:60px;
     height:60px;
     margin-right:10px;
  }
  .info{
     .title{
      font-size: 15px;
      color: #333;
      margin-bottom:5px;
     }
     .subTitle{
      font-size: 13px;
      color: #999;
     }
  }
  
`

export const Enlargement = styled.div`
   position: absolute;
   top:-180px;
   left:50%;
   transform: translateX(-50%);
   padding:10px;
   background:white;
   border:1px solid #333;
   border-radius:5px;
   box-sizing:border-box;
   img{
      width:150px;
      height:150px;
   }

`

export const TopPicWrapper = styled.div`
   padding:20px 10px;
   display:flex;
   align-items: center;
   align-content: center;
   flex-wrap: wrap;
`
export const TopPicItem = styled.div`
   display:flex;
   align-items:center;
   background:#f7f7f7;
   margin:0 10px 10px 0;
   color: #000;
   border: 1px solid #dcdcdc;
   border-radius: 4px;
   cursor: pointer;
   .item_img{
      display:block;
      width: 32px;
      height: 32px;
    }
    .title{
      font-size:14px;
      padding:0 10px;
    }
`

export const ListWrapper = styled.div`
           
`
export const ListItem = styled.div`
   display:flex;
   cursor: pointer;
   padding:20px 0;
   border-bottom:1px solid #eeeeee;
`

export const ItemRight = styled.div`
   .img{
      width:150px;
      height:100px;
   }
`
export const ItemLeft = styled.div`
   flex:1;
   padding:0px 20px 0px 0;
   display:flex;
   flex-direction: column;
   align-items:flex-start;
   justify-content: space-between;
   .title{
    color: #333;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
   }
   .title:hover{
      border-bottom:1px solid #333;
   }
   .desc{
    font-size: 13px;
    line-height: 24px;
    color: #999;
   }
`

export const Comment = styled.div`
   width:100%;
   display:flex;
   align-items:center;
`

export const CommentItem = styled.div`
   margin-right:20px;
   font-size: 12px;
   color:#b4b4b4;
   .iconfont{
      font-size: 12px;
   }
   &.frist{
      color:#ea6f5a;
   }
`
export const Num = styled.span`
 
`
export const LoadMore = styled.div`
   margin-top:20px;
   width:100%;
   height:30px;
   line-height:30px;
   text-align:center;
   border-radius: 20px;
   background-color: #a5a5a5;
   color:white;
   font-size:14px;
   cursor: pointer;
`

export const Top = styled.div`
   position: fixed;
   right:50px;
   bottom:100px;
   width:50px;
   height:50px;
   line-height:50px;
   text-align:center;
   cursor: pointer;
   font-size:14px;
   border:1px solid #dcdcdc;
`

export const WriterWrapper = styled.div`
  width:280px;
  margin-top:30px;
`
export const WriterHeader = styled.div`
  display:flex;
  justify-content: space-between;
  align-items:center;
  font-size: 14px;
  color: #969696;
`

export const WriterHeaderBut = styled.div`
   cursor: pointer;
`

export const WriterList = styled.div`
  padding-top:10px;
`
export const WriterItem = styled.div`
   width:100%;
   margin-bottom:10px;
   display:flex;
   align-items:center;
   .userImg{
   display:block;
   flex:0 0 48px;
   width:48px;
   height:48px;
   border-radius:50%
   }
   .info{
      flex:1;
      font-size: 14px;
      margin-left:10px;
      .name{
         display:flex;
         justify-content: space-between;
         margin-bottom:5px; 
      }
      .attention{
         color: #42c02e;
         cursor: pointer;
      }
   }
   
`

export const LookAll = styled.div`
   width:280px;
   height:35px;
   line-height:35px;
   text-align:center;
   font-size: 13px;
   color: #787878;
   background-color: #f7f7f7;
   border: 1px solid #dcdcdc;
   border-radius: 4px;
   cursor: pointer;
`